package com.sxdx.controller;

import com.sxdx.common.Result;
import com.sxdx.entity.SysUser;
import com.sxdx.entity.dto.SysUserDto;
import com.sxdx.service.ISysUserService;
import com.sxdx.utils.UuidUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class SysUserController {
    @Autowired
    private ISysUserService sysUserService;

    /**
     * 修改用户
     * @param sysUserDto
     * @return
     */
    @PostMapping("/upload")
    public Result update(SysUserDto sysUserDto){
        return sysUserService.updateSysUser(sysUserDto);
    }
}
